const express = require('express')

const apiRouter = express.Router();

apiRouter.get('/get',(req,res)=>{
  res.send({
    status:'0',
    msg:'请求成功',
    data:req.query
  })
})


apiRouter.post('/post',(req,res)=>{
  res.send({
    status:'0',
    msg:'请求成功',
    data:req.body
  })
})

module.exports = apiRouter